package com.mszlu.blog.vo.params;

/**
 * @Package: com.mszlu.blog.vo.params
 * @ClassName: PageParams
 * @Author: 陈威
 * @CreateTime: 2021/8/27 14:54
 * @Description:
 */

public class PageParams {
    private int page=1;  //当前页
    private int pageSize=10;  //每页查询的条数

    private Long categoryId;
    //昵称
    private String nickname;
    private Long tagId;
    private String year;
    private String month;
    public String getMonth(){
        if (this.month!=null&&this.month.length()==1){
            return "0"+this.month;
        }
        return this.month;
    }

    private String title;
    private String author;

    private String categoryName;
    private String description;

    private String tagName;

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Long getTagId() {
        return tagId;
    }

    public void setTagId(Long tagId) {
        this.tagId = tagId;
    }

    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public void setMonth(String month) {
        this.month = month;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getTagName() {
        return tagName;
    }

    public void setTagName(String tagName) {
        this.tagName = tagName;
    }
}